From 18293f4a38a4a1ad3bd9cf56f4a86119bae05542 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Fri, 7 Apr 2017 16:32:11 +0700 Subject: [PATCH] Fix typos. --- src/cargo/ops/cargo_generate_lockfile.rs | 2 +- src/cargo/ops/cargo_new.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cargo/ops/cargo_generate_lockfile.rs b/src/cargo/ops/cargo_generate_lockfile.rs index 989534cea..510f3d1c6 100644 --- a/src/cargo/ops/cargo_generate_lockfile.rs +++ b/src/cargo/ops/cargo_generate_lockfile.rs @@ -146,7 +146,7 @@ pub fn update_lockfile(ws: &Workspace, opts: &UpdateOptions) // we'll let it through. // // Note that we only check this for non-registry sources, - // however, as registries countain enough version information in + // however, as registries contain enough version information in // the package id to disambiguate if a.source_id().is_registry() { return false diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index 088e4c5b4..195c6efaf 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -418,7 +418,7 @@ fn mk(config: &Config, opts: &MkOptions) -> CargoResult<()> { }; let (author_name, email) = discover_author()?; - // Hoo boy, sure glad we've got exhaustivenes checking behind us. + // Hoo boy, sure glad we've got exhaustiveness checking behind us. let author = match (cfg.name, cfg.email, author_name, email) { (Some(name), Some(email), _, _) | (Some(name), None, _, Some(email)) | @@ -430,7 +430,7 @@ fn mk(config: &Config, opts: &MkOptions) -> CargoResult<()> { let mut cargotoml_path_specifier = String::new(); - // Calculare what [lib] and [[bin]]s do we need to append to Cargo.toml + // Calculate what [lib] and [[bin]]s do we need to append to Cargo.toml for i in &opts.source_files { if i.bin { -- 2.30.2